package kingdee.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import kingdee.dao.UserDao;
import kingdee.dao.UsersDao;
import kingdee.service.UserService;
import kingdee.service.UsersService;

/**
 *@author: 
 *@date: 2015-5-18上午10:53:16
 *@version:
 *@description：
 */
@Service("usersService")
public class UsersServiceImpl<T> implements UsersService<T>{
	
	@Autowired
	private UsersDao<T> dao;
	//查询所有
	@Override
	public List<T> findUsers(T t) throws Exception {
		return dao.findUsers(t);
	}
	//查询一个客户
	@Override
	public T findOneUsers(String id) throws Exception {
		return dao.findOneUsers(id);
	}
	//修改
	@Override
	public void updateUsers(T t) throws Exception {
		 dao.updateUsers(t);
	}
	//删除
	@Override
	public void deleteUsers(String id) throws Exception {
		dao.deleteUsers(id);
	}
	@Override
	public int countUsers(T t) throws Exception {
		return dao.countUsers(t);
	}
	


	
}
